﻿namespace Eflong.Monitor
{
    /*
    public partial class KWBridgeServer : EflogMonitorServer, IMonitorServer
    {
        /// <summary>
        /// 更新测点定义
        /// </summary>
        public void UpdateDefinitions(uint nId)
        {
            LogWrapper.Logger.Debug("更新测点定义");
            realMonitorTask.onDefinitiosnChanged(nId);
        }

        /// <summary>
        /// 更新实时数据
        /// </summary>
        public void UpdateDatas(uint nId)
        {
            LogWrapper.Logger.Debug("更新实时数据");
            realMonitorTask.onDataChanged(nId);
        }

        /// <summary>
        /// 更新传感器信息
        /// </summary>
        /// <param name="nId"></param>
        public void UpdateSensors(uint nId)
        {
            LogWrapper.Logger.Debug("更新传感器信息");
            WaitCallback callback = delegate
            {
                CoalMineInfoTask.Instance().UpdateSensors(nId);
            };
            ThreadPool.QueueUserWorkItem(callback);
        }

        /// <summary>
        /// 更新联网矿状态信息
        /// </summary>
        /// <param name="nId">矿Id</param>
        /// <param name="state">联网状态</param>
        public void UpdateCoalMineInfo(uint nId, ConnectStates state)
        {
            LogWrapper.Logger.Debug(state.ToString());
            WaitCallback callback = delegate
            {
                CoalMineInfoTask.Instance().UpdateCoalMineInfo(nId, state);
            };
            ThreadPool.QueueUserWorkItem(callback);
        }
    }*/
}